package com.edushare.common.vo;

import com.edushare.common.vo.auto._Enrolments;

public class Enrolments extends _Enrolments {

	private static final long serialVersionUID = -1557845484105353754L;
	
	public static final int TEACHER 					= 10;
	public static final int STUDENT 					= 20;
	public static final int TEACHING_ASSISTANT          = 30;
	public static final int OBSERVER                    = 40;
	
	public static final int ENROLLED   					= 10;
	public static final int COMPLETED    				= 20;
	public static final int INCOMPLETE 					= 30;
	public static final int REPEAT              		= 40;
	public static final int WITHDRAWN					= 50;
	public static final int INVITED                     = 60;
	
	public static String getRoleAsString(int role) {
		
		switch (role) {
		case TEACHER:
			return "Faculty";
		case STUDENT:
			return "Student";
		case TEACHING_ASSISTANT:
			return "Teaching Assistant";
		case OBSERVER:
			return "Visitor";
		default:
			return "Visitor";
		}
	}
}
